package cn.tedu._07springaop.egaop;

import org.springframework.stereotype.Component;


@Component
public class CartServiceImpl implements CartService{

    @Override
    public int addCart(String cartDetail) {
        int i=30;
        if(i>0){
            throw new RuntimeException("i的值小于0");
        }
        System.out.println("输出结果是"+i);
        return i;
    }

}